import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

export default function CreateComponents() {
    return Components({
        deep: true, // 搜索子目录
        extensions: ['tsx', 'jsx'],
        resolvers: [ElementPlusResolver()],
        dts: 'src/components.d.ts'
    })
}